/**
 * MarketCode值说明：市场代码
 * Category值说明：1000:股票 2000:期货 3000:期权 4000:基金 5000:债券 6000:指数 7000:外汇 8000:外汇交易中心债券市场 12000:股转系统 13000 香港非股票品种
 */
const marketCategory = [
  {
    //上海证券交易所
    category: 1010,
    marketCodes: [
      "XSHG",
      "XSHG.N",
      "XSHG.M",
      "XSHG.KSH",
      "XSHG.ESB",
      "XSHG.ESA.M",
      "XSHG.ER",
    ],
  },
  {
    //深圳证券交易所
    category: 1020,
    marketCodes: [
      "XSHE",
      "XSHE.N",
      "XSHE.M",
      "XSHE.ESB",
      "XSHE.ESA.SMSE",
      "XSHE.ESA.M",
      "XSHE.ESA.GEM",
    ],
  },
  {
    category: 1030,
    marketCodes: [
      //沪港通
      "XHKG-SS",
      "XHKG-SS.GME",
      "XHKG-SS.ES",

      //深港通
      "XHKG-SZ",
      "XHKG-SZ.ES",

      //美股
      "XNAS",
      "XASE",
      "XNYS",

      //港股
      "XHKG-I",
      "XHKG-M",
      "XHKG-G",
      "XHKG-N",
      "XHKG-E",
      "XHKG-M.ES",
      "XHKG-G.ES",
    ],
  },
  {
    category: 2000,
    marketCodes: [
      //中国金融期货交易所
      "CCFX",
      "CCFX.FF.INDEX.ZZ500",
      "CCFX.FF.INDEX.SZ50",
      "CCFX.FF.INDEX.HS300",
      "CCFX.FF.DEBT.TS",
      "CCFX.FF.DEBT",

      //上海期货交易所
      "XSGE",
      "XSGE.FC.WIRE",
      "XSGE.FC.SILVER",
      "XSGE.FC.RUBBER",
      "XSGE.FC.REBAR",
      "XSGE.FC.PULP",
      "XSGE.FC.PITCH",
      "XSGE.FC.NiSn",
      "XSGE.FC.METAL",
      "XSGE.FC.GOLD",
      "XSGE.FC.FUEL",
      "XSGE.FC.COIL",

      //大连商品交易所
      "XDCE",
      "XDCE.FC.STARCH",
      "XDCE.FC.SLAB",
      "XDCE.FC.RR",
      "XDCE.FC.PG",
      "XDCE.FC.PETR",
      "XDCE.FC.PALM",
      "XDCE.FC.INRU",
      "XDCE.FC.FB",
      "XDCE.FC.EGG",
      "XDCE.FC.EG",
      "XDCE.FC.CORN",
      "XDCE.FC.COKE",
      "XDCE.FC.COAL",
      "XDCE.FC.BOIL",
      "XDCE.FC.BEAN",
      "XDCE.FC.LH",

      //郑州商品交易所
      "XZCE",
      "XZCE.FC.WHEAT",
      "XZCE.FC.UR",
      "XZCE.FC.SUGAR",
      "XZCE.FC.STEAMCOAL",
      "XZCE.FC.RICE",
      "XZCE.FC.RAPOIL",
      "XZCE.FC.PTA",
      "XZCE.FC.METAL",
      "XZCE.FC.MEAL",
      "XZCE.FC.MA",
      "XZCE.FC.GLASS",
      "XZCE.FC.COTTON",
      "XZCE.FC.CJ",
      "XZCE.FC.AP",

      //上海能源期货交易中心
      "XINE",
      "XINE.FC.OIL",
      "XINE.FC.NR",
      "XINE.FC.LU",
      "XINE.FC.BC",

      // 上海黄金现货交易所
      "SHGE",
      "SHGE.FC.METAL",

      //外盘期货
      "XCBT",
      "XCBT.FC.KE",
      "XCBT.FC.MYM",
      "XCBT.FC.XC",
      "XCBT.FC.XK",
      "XCBT.FC.XW",
      "XCBT.FC.ZC",
      "XCBT.FC.ZL",
      "XCBT.FC.ZM",
      "XCBT.FC.ZO",
      "XCBT.FC.ZR",
      "XCBT.FC.ZS",
      "XCBT.FC.ZW",
      "XCBT.FC.TN",
      "XCBT.FC.UB",
      "XCBT.FC.YM",
      "XCBT.FC.ZB",
      "XCBT.FC.ZF",
      "XCBT.FC.ZN",
      "XCBT.FC.ZQ",
      "XCBT.FC.ZT",

      "XLME",
      "XLME.FC.AG.S",
      "XLME.FC.AU.S",
      "XLME.FC.AA.S",
      "XLME.FC.AH.S",
      "XLME.FC.CA.S",
      "XLME.FC.CO.S",
      "XLME.FC.NA.S",
      "XLME.FC.NI.S",
      "XLME.FC.PB.S",
      "XLME.FC.SN.S",
      "XLME.FC.ZS.S",

      "XCEC",
      "XCEC.FC.GC",
      "XCEC.FC.MGC",
      "XCEC.FC.QI",
      "XCEC.FC.QO",
      "XCEC.FC.SGC",
      "XCEC.FC.SGU",
      "XCEC.FC.SI",
      "XCEC.FC.ALI",
      "XCEC.FC.HG",
      "XCEC.FC.QC",

      "XNYM",
      "XNYM.FC.PA",
      "XNYM.FC.PL",
      "XNYM.FC.BZ",
      "XNYM.FC.CL",
      "XNYM.FC.HO",
      "XNYM.FC.NG",
      "XNYM.FC.QG",
      "XNYM.FC.QM",
      "XNYM.FC.RB",

      "CMES",
      "CMES.FC.6A",
      "CMES.FC.6B",
      "CMES.FC.6C",
      "CMES.FC.6E",
      "CMES.FC.6J",
      "CMES.FC.6M",
      "CMES.FC.6N",
      "CMES.FC.6S",
      "CMES.FC.EMD",
      "CMES.FC.ES",
      "CMES.FC.GE",
      "CMES.FC.GF",
      "CMES.FC.HE",
      "CMES.FC.LE",
      "CMES.FC.M2K",
      "CMES.FC.MES",
      "CMES.FC.MNQ",
      "CMES.FC.MPC",
      "CMES.FC.NIY",
      "CMES.FC.NKD",
      "CMES.FC.NQ",
      "CMES.FC.RTY",
      "CMES.FC.SON",
      "CMES.FC.SR1",
      "CMES.FC.SR3",

      "ICEE",
      "ICEE.FC.AFR",
      "ICEE.FC.ATW",
      "ICEE.FC.BRN",
      "ICEE.FC.G",
      "ICEE.FC.WBS",
      "ICEE.FC.UHO",
      "ICEE.FC.UHU",
      "ICEE.FC.C",
      "ICEE.FC.RC",
      "ICEE.FC.W",

      "ICEU",
      "ICEU.FC.YG",
      "ICEU.FC.YI",
      "ICEU.FC.CC",
      "ICEU.FC.CT",
      "ICEU.FC.OJ",
      "ICEU.FC.RS",
      "ICEU.FC.SB",
      "ICEU.FC.KC",
    ],
  },
  {
    category: 2010,
    marketCodes: [
      // 中证商品指数 - 中金所国债期货
      "CCI",
      "CCI.CFFEX.RI",
    ],
  },
  {
    category: 2020,
    marketCodes: [
      // 中证商品指数 - 中信国债期货
      "CCI",
      "CCI.CITICS.RI",
    ],
  },
  {
    category: 2030,
    marketCodes: [
      // 国内期货
      //中国金融期货交易所
      "CCFX",
      "CCFX.FF.INDEX.ZZ500",
      "CCFX.FF.INDEX.SZ50",
      "CCFX.FF.INDEX.HS300",
      "CCFX.FF.DEBT.TS",
      "CCFX.FF.DEBT",

      //上海期货交易所
      "XSGE",
      "XSGE.FC.WIRE",
      "XSGE.FC.SILVER",
      "XSGE.FC.RUBBER",
      "XSGE.FC.REBAR",
      "XSGE.FC.PULP",
      "XSGE.FC.PITCH",
      "XSGE.FC.NiSn",
      "XSGE.FC.METAL",
      "XSGE.FC.GOLD",
      "XSGE.FC.FUEL",
      "XSGE.FC.COIL",

      //大连商品交易所
      "XDCE",
      "XDCE.FC.STARCH",
      "XDCE.FC.SLAB",
      "XDCE.FC.RR",
      "XDCE.FC.PG",
      "XDCE.FC.PETR",
      "XDCE.FC.PALM",
      "XDCE.FC.INRU",
      "XDCE.FC.FB",
      "XDCE.FC.EGG",
      "XDCE.FC.EG",
      "XDCE.FC.CORN",
      "XDCE.FC.COKE",
      "XDCE.FC.COAL",
      "XDCE.FC.BOIL",
      "XDCE.FC.BEAN",
      "XDCE.FC.LH",

      //郑州商品交易所
      "XZCE",
      "XZCE.FC.WHEAT",
      "XZCE.FC.UR",
      "XZCE.FC.SUGAR",
      "XZCE.FC.STEAMCOAL",
      "XZCE.FC.RICE",
      "XZCE.FC.RAPOIL",
      "XZCE.FC.PTA",
      "XZCE.FC.METAL",
      "XZCE.FC.MEAL",
      "XZCE.FC.MA",
      "XZCE.FC.GLASS",
      "XZCE.FC.COTTON",
      "XZCE.FC.CJ",
      "XZCE.FC.AP",

      //上海能源期货交易中心
      "XINE",
      "XINE.FC.OIL",
      "XINE.FC.NR",
      "XINE.FC.LU",
      "XINE.FC.BC",

      // 上海黄金现货交易所
      "SHGE",
      "SHGE.FC.METAL",
    ],
  },
  {
    category: 3010,
    marketCodes: [
      //上海个股期权
      "XSHO",
      "XSHO.O.ETF",

      //深圳个股期权
      "XSZO",
      "XSZO.O.ETF",

      //中金所商品期权
      "CCFX-O",
      "CCFX-O.O.IO",
    ],
  },
  {
    category: 3020,
    marketCodes: [
      //上海商品期权
      "XSGE-O",
      "XSGE-O.O.ZN",
      "XSGE-O.O.RU",
      "XSGE-O.O.CU",
      "XSGE-O.O.AU",
      "XSGE-O.O.AL",

      //大连商品期权
      "XDCE-O",
      "XDCE-O.O.V",
      "XDCE-O.O.PP",
      "XDCE-O.O.PG",
      "XDCE-O.O.M",
      "XDCE-O.O.L",
      "XDCE-O.O.I",
      "XDCE-O.O.C",

      //郑州商品期权
      "XZCE-O",
      "XZCE-O.O.ZC",
      "XZCE-O.O.TA",
      "XZCE-O.O.SR",
      "XZCE-O.O.RM",
      "XZCE-O.O.MA",
      "XZCE-O.O.CF",

      //大商所组合
      "XDCC",
      "XDCC.F.M",

      //郑商所组合
      "XZCC",
      "XZCC.F.M",
    ],
  },
  {
    category: 4000,
    marketCodes: [
      //上证基金
      "XSHG.EU",
      "XSHG.EM.SF",
      "XSHG.EM.LOF",
      // "XSHG.R",

      //深证基金
      "XSHE.EM.SF",
      "XSHE.EM.LOF",
      "XSHE.EM.CEF",
    ],
  },
  {
    category: 4010,
    marketCodes: [
      // 上证ETF基金
      "XSHG.EM.ETF",

      // 深证ETF基金
      "XSHE.EM.ETF",
    ],
  },
  {
    category: 4020,
    marketCodes: [
      // 场外基金市场
      "OF",
    ],
  },
  {
    category: 5000,
    marketCodes: [
      //上证债券
      "XSHG.D",
      "XSHG.D.CCF",
      "XSHG.D.REPO",
      "XSHG.DB.REPO",
      "XSHG.DB.GBF",
      "XSHG.DB.CPF",
      "XSHG.DB.CCF",
      "XSHG.DB.CBF",

      //深证债券
      "XSHE.D",
      "XSHE.D.CCF",
      "XSHE.D.REPO",
      "XSHE.DB.REPO",
      "XSHE.DB.GBF",
      "XSHE.DB.CPF",
      "XSHE.DB.CCF",
      "XSHE.DB.CBF",
    ],
  },
  {
    category: 5010,
    marketCodes: [
      // 新债品种
      //上证债券
      "XSHG.D",
      "XSHG.DB.GBF",
      "XSHG.DB.CPF",
      "XSHG.DB.CBF",
      "XSHG.D.GBF",
      "XSHG.D.CPF",
      "XSHG.D.CBF",

      //深证债券
      "XSHE.D",
      "XSHE.DB.GBF",
      "XSHE.DB.CPF",
      "XSHE.DB.CBF",
      "XSHE.D.GBF",
      "XSHE.D.CPF",
      "XSHE.D.CBF",
    ],
  },
  {
    category: 5030,
    marketCodes: [
      //北交所可债券
      "NEEQ.D.CCF.BJ",
    ],
  },
  {
    category: 6000,
    marketCodes: [
      //沪深指数
      "XSHG.MRI",
      "XSHE.MRI",

      //中证指数
      "CSI",
      "CSI.MRI.SZSE",
      "CSI.MRI.SSE",
      "CSI.MRI.OTHER",
      "CSI.MRI.HS",
      "CSI.MRI.HK",
      "CSI.MRI.GLB",
      "CSI.MRI.AP",

      //申万指数
      "SWI",
      "SWI.MRI.SW",

      //国证指数
      "CNI",
      "CNI.MRI.SZSE",

      // 三板指数
      "NEEQ.MRI",
    ],
  },
  {
    category: 6010,
    marketCodes: [
      //港股指数
      "XHKG-I.MRI",

      // 恒生指数
      "XBCJHK",
      "XBCJHK.ZZZSHY",
      "XBCJHK.HSHY",
      "XBCJHK.ZSCF",
      "XBCJHS.ZSCF",
    ],
  },
  {
    category: 6020,
    marketCodes: [
      //美洲市场指数
      "GL-AMER.AMER",
      "GL-SAPI.SAPI",
      "GL-LEUM.LEUM",
      "GL-GSPTSE.GSPTSE",
      "GL-USDIND.USDIND",
      //欧洲市场指数
      "GL-IBEX.IBEX",
      "GL-RUSA.RUSA",
      "GL-LDUN.LDUN",
      "GL-GDAXI.GDAXI",
      "GL-AEX.AEX",
      "GL-ATX.ATX",
      "GL-BFX.BFX",
      "GL-FCHI.FCHI",
      "GL-MIB.MIB",
      "GL-SSMI.SSMI",
      "GL-OMXSPI.OMXSPI",

      //亚洲市场指数
      "GL-HKHS.HKHS",
      "GL-TWII.TWII",
      "GL-N225.N225",
      "GL-INDO.INDO",
      "GL-MUBA.MUBA",
      "GL-KLSE.KLSE",
      "GL-KS11.KS11",
      "GL-NZLD.NZLD",
      "GL-AUST.AUST",
    ],
  },
  {
    category: 6030,
    marketCodes: [
      //沪深板块
      "XBHS",
      "XBHS.ZS",
      "XBHS.ZJHHY",
      "XBHS.HY",
      "XBHS.GN",
      "XBHS.DY",

      // 板块指数
      "XBCJHS.SWHY2014",
      "XBCJHS.GN",
      "XBCJHS.DY",
      "XBCJHS.ZJHHY2012",
      "XBCJHS.SC",
      "XBCJHS.ZXHY",
      "XBCJHS.ZZZSHY2016B",
      "XBCJHS.HY",
      "XBCJHS.JYDY",
      "XBCJHS.ZJHHY2012ZBPL",
    ],
  },
  {
    category: 7000,
    marketCodes: [
      "FXCFES.UFI",
      "FXCFES.SSR",
      "FXCFES.SFR",
      "FXCFES.FWRC",
      "FXCFES.FWQC",
      "FXCFES.FWL",
      "FXCFES.FWCSL",
      "FXCFES.FVL",
      "FXCFES.FSRJ",
      "FXCFES.FSRC",
      "FXCFES.FSQX",
      "FXCFES.FSQC",
      "FXCFES.FOVL",
      "FXCFES.FORX",
      "FXCFES.FOQX",
      "FXCFES.FODL",
      "FXCFES.FFSQX",
      "FXCFES.FFSQC",
      "FXCFES.FDR",
      "FXCFES.FDAS",
      "FXCFES.FDA",
      "FXCFES.FC",
      "FXCFES.BRS",
    ],
  },
  {
    category: 7010,
    marketCodes: [
      //远期外汇
      "FXCFES.FFRX",
    ],
  },
  {
    category: 7020,
    marketCodes: [
      //掉期外汇
      "FXCFES.FWRX",
      "FXCFES.FWQX",
    ],
  },
  {
    category: 7030,
    marketCodes: [
      //中间价外汇
      "FXCFES.RBD",
    ],
  },
  {
    category: 7040,
    marketCodes: [
      //国际外汇
      "CJFX.GFSQ",
      "CJFX.FWQ",
      "CJFX.FSQ",
    ],
  },
  {
    category: 7050,
    marketCodes: [
      //银行间汇率指数
      "FXCFES.RMBI",
    ],
  },
  {
    category: 7060,
    marketCodes: [
      //外汇人民币即期
      "FXCFES.FSRH",
    ],
  },
  {
    category: 7070,
    marketCodes: [
      //外汇外币对即期
      "FXCFES.FSRX",
    ],
  },
  {
    category: 7080,
    marketCodes: [
      //外汇(无 hq_type_code)
      "FXCFES",
    ],
  },
  {
    category: 8000,
    marketCodes: [
      //外汇交易中心债券市场
      "BONDCFES",
      //银行间债券指数
      "BONDCFES.BNPJI",
    ],
  },
  {
    category: 8010,
    marketCodes: [
      //银行间债券
      "BONDCFES.FBR",
      "BONDCFES.FBCR",
    ],
  },
  {
    category: 8020,
    marketCodes: [
      //银行间利率
      "MMCFES.CBSA",
      "MMCFES.CBR",
      "MMCFES.CBRD",
      "MMCFES.CLRQ",
    ],
  },
  {
    category: 8030,
    marketCodes: [
      //银行间回购
      "MMCFES.CPR",
      "MMCFES.CCD",
      "MMCFES.OR",
      "MMCFES.CRSR",
      "BONDCFES.FBLR",
    ],
  },
  {
    category: 8040,
    marketCodes: [
      //债券远期合约
      "BONDCFES.FBSR",
      "BONDCFES.FBFR",
    ],
  },
  {
    category: 12000,
    marketCodes: ["NEEQ.JJZR", "NEEQ.LWTS", "NEEQ.ZSZR", "NEEQ.M", "NEEQ.ER"],
  },
  // {
  //   category: 13000,
  //   marketCodes: [
  //     "XHKG-M.TR.ETF",
  //     "XHKG-M.TR.REIT",
  //     "XHKG-M.TR",
  //     "XHKG-M.DB",
  //     "XHKG-M.DB.HKMAE",
  //     "XHKG-M.DB.SARGOV",
  //     "XHKG-M.DB.M.HKD",
  //     "XHKG-M.DB.M.CNY",
  //     "XHKG-M.DB.PRCGOV",
  //     "XHKG-M.RW.EW.CALL",
  //     "XHKG-M.RW.DW.CALL",
  //     "XHKG-M.RW.DW.PUT",
  //     "XHKG-M.RW.CBBC.CALL",
  //     "XHKG-M.RW.CBBC.PUT",
  //     "XHKG-M.DM"
  //   ]
  // },
  {
    category: 13000,
    marketCodes: [
      // 港股基金
      "XHKG-M.TR.ETF",
      "XHKG-M.TR.REIT",
      "XHKG-M.TR",
      // 港股涡轮
      "XHKG-M.RW.EW.CALL",
      "XHKG-M.RW.DW.PUT",
      "XHKG-M.RW.DW.CALL",
      // 港股牛熊证
      "XHKG-M.RW.CBBC.CALL",
      "XHKG-M.RW.CBBC.PUT",
      // 港股债券
      "XHKG-M.DB",
      "XHKG-M.DB.HKMAE",
      "XHKG-M.DB.SARGOV",
      "XHKG-M.DB.M.HKD",
      "XHKG-M.DB.M.CNY",
      "XHKG-M.DB.PRCGOV",
    ],
  },
  {
    category: 13010,
    marketCodes: ["XHKG-M.DM"],
  },
];
module.exports = marketCategory;
